package com.keyancompany.zhongbaopingtai.model;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Gia on 2016/8/12.
 */
public class User implements Serializable {
    private String userId;
    private String tel;//电话
    private String accountname;//账号
    private String username;//用户名
    private String birthday;//生日
    private int sex;//性别（1女0男）
    private String phone;//电话
    private String ableMoney;//可用资金
    private String unableMoney;//不可用资金
    private String headpic;//头像
    private int level;//等级
    private String weixin;//微信号
    private String educat;//教育信息
    private String reginstime;//注册时间
    private int isPublic;//公开设置（0否1是）
    private String role;//用户类型（1组织0个人）
    private int certification;//实名认证（1正在审核中， 0 未认证，2 审核未通过 ，3 已认证 ）
    private String email;//邮箱地址
    private String qq;//QQ号码
    private String zhifubao;//支付宝
    private List<Fields> fields;//关注领域
    private List<Labels> labels;//个人标签
    private String workat;//职业经历
    private String path_id;
    private String state;
    private String rate;
    private int isgood;
    private String facebook;
    private int mailverify;
    private int cashpwd; //0为设置，1已设置
    private String certifica;//.jpg"
    private String theme;
    private String paypal;
    private String homename;
    private String path_name;
    private String pwd;
    private String resume;
    private int certificationfirm;
    private long phoneverify;
    private double jifen;//:1024.0;
    private int userstate;
    private String userPid;
    private String userCode;


    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public String getUserPid() {
        return userPid;
    }

    public void setUserPid(String userPid) {
        this.userPid = userPid;
    }

    public double getJifen() {
        return jifen;
    }

    public void setJifen(double jifen) {
        this.jifen = jifen;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getAccountname() {
        return accountname;
    }

    public void setAccountname(String accountname) {
        this.accountname = accountname;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAbleMoney() {
        return ableMoney;
    }

    public void setAbleMoney(String ableMoney) {
        this.ableMoney = ableMoney;
    }

    public String getUnableMoney() {
        return unableMoney;
    }

    public void setUnableMoney(String unableMoney) {
        this.unableMoney = unableMoney;
    }

    public String getHeadpic() {
        return headpic;
    }

    public void setHeadpic(String headpic) {
        this.headpic = headpic;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public String getWeixin() {
        return weixin;
    }

    public void setWeixin(String weixin) {
        this.weixin = weixin;
    }

    public String getEducat() {
        return educat;
    }

    public void setEducat(String educat) {
        this.educat = educat;
    }

    public String getReginstime() {
        return reginstime;
    }

    public void setReginstime(String reginstime) {
        this.reginstime = reginstime;
    }

    public int getIsPublic() {
        return isPublic;
    }

    public void setIsPublic(int isPublic) {
        this.isPublic = isPublic;
    }

    public int getRole() {
        if (role.equals("1")) {
            return 1;
        } else if (role.equals("0")) {
            return 0;
        }
        return 0;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public int getCertification() {
        return certification;
    }

    public void setCertification(int certification) {
        this.certification = certification;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getZhifubao() {
        return zhifubao;
    }

    public void setZhifubao(String zhifubao) {
        this.zhifubao = zhifubao;
    }

    public List<Fields> getFields() {
        return fields;
    }

    public void setFields(List<Fields> fields) {
        this.fields = fields;
    }

    public List<Labels> getLabels() {
        return labels;
    }

    public String getLabelsStr() {
        if (labels == null && labels.isEmpty()) {
            return "";
        }
        StringBuffer sb = new StringBuffer();

        for (Labels label : labels) {
            sb.append(label.getText() + "、");
        }
        if (sb.length() < 1) {
            return sb.toString();
        }
        return sb.toString().substring(0, sb.toString().length() - 1);
    }
    public String getFiledsStr() {
        if (fields == null && fields.isEmpty()) {
            return "";
        }
        StringBuffer sb = new StringBuffer();

        for (Fields label : fields) {
            sb.append(label.getText() + "、");
        }
        if (sb.length() < 1) {
            return sb.toString();
        }
        return sb.toString().substring(0, sb.toString().length() - 1);
    }

    public void setLabels(List<Labels> labels) {
        this.labels = labels;
    }

    public String getWorkat() {
        return workat;
    }

    public void setWorkat(String workat) {
        this.workat = workat;
    }

    public String getPath_id() {
        return path_id;
    }

    public void setPath_id(String path_id) {
        this.path_id = path_id;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getRate() {
        return rate;
    }

    public void setRate(String rate) {
        this.rate = rate;
    }

    public int getIsgood() {
        return isgood;
    }

    public void setIsgood(int isgood) {
        this.isgood = isgood;
    }

    public String getFacebook() {
        return facebook;
    }

    public void setFacebook(String facebook) {
        this.facebook = facebook;
    }

    public int getMailverify() {
        return mailverify;
    }

    public void setMailverify(int mailverify) {
        this.mailverify = mailverify;
    }

    public int getCashpwd() {
        return cashpwd;
    }

    public void setCashpwd(int cashpwd) {
        this.cashpwd = cashpwd;
    }

    public String getCertifica() {
        return certifica;
    }

    public void setCertifica(String certifica) {
        this.certifica = certifica;
    }

    public String getTheme() {
        return theme;
    }

    public void setTheme(String theme) {
        this.theme = theme;
    }

    public String getPaypal() {
        return paypal;
    }

    public void setPaypal(String paypal) {
        this.paypal = paypal;
    }

    public String getHomename() {
        return homename;
    }

    public void setHomename(String homename) {
        this.homename = homename;
    }

    public String getPath_name() {
        return path_name;
    }

    public void setPath_name(String path_name) {
        this.path_name = path_name;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getResume() {
        return resume;
    }

    public void setResume(String resume) {
        this.resume = resume;
    }

    public int getCertificationfirm() {
        return certificationfirm;
    }

    public void setCertificationfirm(int certificationfirm) {
        this.certificationfirm = certificationfirm;
    }

    public long getPhoneverify() {
        return phoneverify;
    }

    public void setPhoneverify(long phoneverify) {
        this.phoneverify = phoneverify;
    }

    public int getUserstate() {
        return userstate;
    }

    public void setUserstate(int userstate) {
        this.userstate = userstate;
    }
}
